SDK/J Authentication Package ver1.0
RICOH Confidential

jp.co.ricoh.dsdk.scard.framework.util
Class DebugTrace

java.lang.Object
  extended byjp.co.ricoh.dsdk.scard.framework.util.DebugTrace

public class DebugTrace
extends java.lang.Object

This is an utility class for debugging. This class prints out debug messages to the PrintStream according to the debug level. The default debug level is 0, and the default PrintStream is System.out.

If the debug level is 3 or larger, SCF prints the following debug messages to the PrintStream.
・The name of the card reader and the ATR of the card.(When a card inserted)
・The name of the card reader.(When the card removed))

If the debug level is 5 or larger, SCF prints the information about the initialization of eace CardService to the PrintStream.

If the debug level is 10 or larger, SCF prints all APDUs sent and received to the PrintStream.


Constructor Summary
DebugTrace()
           
 
Method Summary
static int getLevel()
           Returns the debug level.
static java.io.PrintStream getOut()
           Returns the PrintStream.
static void print(int level, boolean b)
           Prints a boolean value to the PrintStream.
static void print(int level, char c)
           Prints a character to the PrintStream.
static void print(int level, char[] s)
           Prints a character array to the PrintStream.
static void print(int level, double d)
           Prints a double value to the PrintStream.
static void print(int level, float f)
           Prints a float value to the PrintStream.
static void print(int level, int i)
           Prints an int value to the PrintStream.
static void print(int level, long l)
           Prints a long value to the PrintStream.
static void print(int level, java.lang.Object obj)
           Prints an Object to the PrintStream.
static void print(int level, java.lang.String s)
           Prints a String to the PrintStream.
static void println(int level, boolean b)
           Prints a boolean value and a line termination sequence to the PrintStream.
static void println(int level, char c)
           Prints a character and a line termination sequence to the PrintStream.
static void println(int level, char[] s)
           Prints a character array and a line termination sequence to the PrintStream.
static void println(int level, double d)
           Prints a double value and a line termination sequence to the PrintStream.
static void println(int level, float f)
           Prints a float value and a line termination sequence to the PrintStream.
static void println(int level, int i)
           Prints an int value and a line termination sequence to the PrintStream.
static void println(int level, long l)
           Prints a long value and a line termination sequence to the PrintStream.
static void println(int level, java.lang.Object obj)
           Prints an Object and a line termination sequence to the PrintStream.
static void println(int level, java.lang.String s)
           Prints a String and a line termination sequence to the PrintStream.
static void printStackTrace(int level, java.lang.Throwable e)
           Prints a Throwable object and its backtrace to the PrintStream.
static void setLevel(int level)
           Sets the debug level.
static void setOut(java.io.PrintStream out)
           Sets the PrintStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugTrace

public DebugTrace()
Method Detail

getLevel

public static int getLevel()
Returns the debug level.

Returns:
the debug level.

setLevel

public static void setLevel(int level)
Sets the debug level.

Parameters:
level - the debug level.

getOut

public static java.io.PrintStream getOut()
Returns the PrintStream.

Returns:
the PrintStream.

setOut

public static void setOut(java.io.PrintStream out)
Sets the PrintStream.

Parameters:
out - the PrintStream.

print

public static void print(int level,
                         boolean b)
Prints a boolean value to the PrintStream.

Parameters:
level - the debug level of this debug message.
b - a boolean value.

print

public static void print(int level,
                         char c)
Prints a character to the PrintStream.

Parameters:
level - the debug level of this debug message.
c - a character.

print

public static void print(int level,
                         char[] s)
Prints a character array to the PrintStream.

Parameters:
level - the debug level of this debug message.
s - a character array.

print

public static void print(int level,
                         double d)
Prints a double value to the PrintStream.

Parameters:
level - the debug level of this debug message.
d - a double value.

print

public static void print(int level,
                         float f)
Prints a float value to the PrintStream.

Parameters:
level - the debug level of this debug message.
f - a float value.

print

public static void print(int level,
                         int i)
Prints an int value to the PrintStream.

Parameters:
level - the debug level.
i - an int value.

print

public static void print(int level,
                         long l)
Prints a long value to the PrintStream.

Parameters:
level - the debug level of this debug message.
l - a long value.

print

public static void print(int level,
                         java.lang.Object obj)
Prints an Object to the PrintStream.

Parameters:
level - the debug level of this debug message.
obj - an Object.

print

public static void print(int level,
                         java.lang.String s)
Prints a String to the PrintStream.

Parameters:
level - the level of this debug message.
s - a String.

println

public static void println(int level,
                           boolean b)
Prints a boolean value and a line termination sequence to the PrintStream.

Parameters:
level - the debug level of this debug message.
b - a boolean value.

println

public static void println(int level,
                           char c)
Prints a character and a line termination sequence to the PrintStream.

Parameters:
level - the debug level of this debug message.
c - a character.

println

public static void println(int level,
                           char[] s)
Prints a character array and a line termination sequence to the PrintStream.

Parameters:
level - the debug level of this debug message.
s - a character array.

println

public static void println(int level,
                           double d)
Prints a double value and a line termination sequence to the PrintStream.

Parameters:
level - the debug level of this debug message.
d - a double value.

println

public static void println(int level,
                           float f)
Prints a float value and a line termination sequence to the PrintStream.

Parameters:
level - the debug level of this debug message.
f - a float value.

println

public static void println(int level,
                           int i)
Prints an int value and a line termination sequence to the PrintStream.

Parameters:
level - the debug level.
i - an int value.

println

public static void println(int level,
                           long l)
Prints a long value and a line termination sequence to the PrintStream.

Parameters:
level - the debug level.
l - a long value.

println

public static void println(int level,
                           java.lang.Object obj)
Prints an Object and a line termination sequence to the PrintStream.

Parameters:
level - the debug level.
obj - an Object.

println

public static void println(int level,
                           java.lang.String s)
Prints a String and a line termination sequence to the PrintStream.

Parameters:
level - the debug level.
s - a String.

printStackTrace

public static void printStackTrace(int level,
                                   java.lang.Throwable e)
Prints a Throwable object and its backtrace to the PrintStream.

Parameters:
level - the debug level.
e - a Throwable object.

SDK/J Authentication Package ver1.0
RICOH Confidential